<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2019/1/11
 * Time: 17:25
 */

namespace app\modules\state;


class ContextOrder extends StateOrder
{
    /**
     * className
     *
     * @date   2019/1/11
     * @author edmmss
     * @return mixed
     */
    public function done()
    {
        // TODO: Implement done() method.
        static::$state->done();
    }

    public function getState(): StateOrder
    {
        return static::$state;
    }

    public function setState(StateOrder $stateOrder)
    {
        static::$state = $stateOrder;
    }
}